add test.py for checking things in Python, edit gitignore to ignore Python bytecode