Added code to the models.py files, to make everything run as smooth in Python 3 as it does in Python 2.