Python3 compatibility

This pull request makes django-pglocks compatible with Python 3 (tested with Python 3.3 + Django 1.7).

Note that `__hash__()` should not be used to construct the lock id as it is randomized in Python 3 (see https://docs.python.org/3/reference/datamodel.html#object.__hash__).