Small rewrite of main to comply with most lint errors and make code consistent.
Small rewrite of main to comply with most lint errors and make code consistent.

GoogleCloudPlatform/appengine-sharded-counters-python