add. method parse_request to parse user metrics request components.

Change-Id: Ibadda2f1e163f0f23726a8da079b80e219a4fa17
fix. typo / pep8.

Change-Id: I9abd6062345a4addefba39f4fd508ddc2b269caa