models.py py3 compatability