Change randrange ref from django back to python so it works again.