Make django-postgres Python3 compatible