pep8 and pyflakes3 compilant

Passed through autopep8
Checked with pep8
Checked with pyflakes3 and corrected accordingly
Merge pull request #1 from Daniel-at-github/master

pep8 and pyflakes3 compilant