I have a windows application with a python API (supports python 3). You can provide a class that has a main function. On program startup, an instance of this class is created, a