recent commit cleared the __main__ namespace once a script finished which meant classes defined there would loose their namespace. now inset a new __main__ module into sys.modules for every script that runs, any classes that are registered will hold a reference to that modules namespace.