Move some stuff around. Give a new package name and start an interpreter instead of the def main doing all the work.