Made django-pglocks Python 3 compatible