Added __pycache__ to gitignore for python3, pep8 fixes, python3 support