Improve compliance with pep8.

Examples and generated thrift files still have pep8 violations.