Small refactor git cl py.
Small refactor git cl py.

R=sergiyb@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1876923002

git-svn-id: fd409f4bdeea2bb50a5d34bb4d4bfc2046a5a3dd@299857 0039d316-1c4b-4281-b951-d872f2087c98

primiano/depot_tools,primiano/depot_tools,CoherentLabs/depot_tools,primiano/depot_tools,CoherentLabs/depot_tools