refined getUserProfile based on comments in code review
refined getUserProfile based on comments in code review

larssono/synapsePythonClient,zimingd/synapsePythonClient,thomasyu888/synapsePythonClient,kkdang/synapsePythonClient