Fixes some of pyflake issues for user.py tasks