Fix UserMixin hashing with Python 3

Pull request to fix #130