Fix UserMixin hashing with Python 3