Update users.py

See issue #565