Updated .gitignore; some cleanup of Python file.