Python file ending, gitignor for virtualenv
PEP8 compliance
Python 3, PEP 8 compliance, general refactoring