Minor code cleanup

Whitespace, line length, variable naming and other minor improvements.
We also update pylintrc and add simple script that we use to check
our code.

Change-Id: I2a9d0c8a3437d3690d58ad3b5f0affc6a383bd51