user.py thread issue