Split out library from main executable
Add .gitignore with *.pyc