use `cros lint` on upload hooks

We want to start enforcing style in these files, so use `cros lint`.
Also clean up the code base so we pass the linter.

TEST=`repo upload` works in this dir (and runs `cros lint`)
TEST=`cros lint *.py` doesn't complain
TEST=`./` works

Change-Id: I7ae8d944525d08940ed6f6b2d0c66e9d373cadbe
Reviewed-by: David James <>
Tested-by: Mike Frysinger <>
4 files changed