Update user.py

At the moment ``isAnonymousUser`` returns <int> values. Fix to explicitly cast to boolean.