Formalize as a package

Added setup.py and Github's python-focused .gitignore.