Jamie Foxx listened to Notorious B.I.G. to get into 'Django' character