Added django 1.7 comaptibility in Python3.