Making django-mobile Python3 compatible

I couldn't install django-mobile in a Python 3 project because of a couple of no longer supported methods in setup.py, the tests and in the module itself.
I fixed the issues keeping compatibility with Python 2