Update user.py

At the moment ``isAnonymousUser`` returns <int> values. Fix to explicitly cast to boolean.
Merge pull request #155 from barseghyanartur/patch-1

Update user.py