Make it installable

Make it a package, and add setup.py to make it installable through setuptools. Expose the main function through an entry point