made python3 compatibility

Now it can be installed into Python3-based Django.