Switching to logging rather than print() and moving executable stuff into its own script