[style] cleanup white space and make PEP8
support py3.2, conditionally use unicode literals