Refactored to python module - will need some pyinstaller magic to make a single file executable
migrated to be a module, not just a single script