user.py thread bug