PEP8 compliance

Added code to check for PEP8 compliance, and tested it with Python 2.6.9, 2.7.8 and 3.4.1.