add getUserName func for user.py

Hi Eli,
I had add getUserName func for user.py