Make code Python 3 compatible.
First of all, thank you for maintaining an up-to-date fork of `django-oauth2-provider`!
Our company also uses it, and currently we are lacking resources to migrate to recommended `django-oauth-toolkit` package.
But this is the last dependency that hinders us from using Python 3. Porting is relatively simple and is provided in this PR. I'm open to discuss the changes.