added a .gitignore. PEP 8'ed the main python file