You can focus on the file module/abstract_module.py which is an abstract class for all modules.
the init class constructor is used to initilize queue, logger process en the pending time between calls
the run method is generic and get the messages.
the method compute is to compute a message from queue and should be override
the method computeNone is optional if treatments have to be done when no message in queue
Then focus on other files like phone.py which is very simple and template.py
The aims of this refactoring is to :
You can focus on the file module/abstract_module.py which is an abstract class for all modules.
Then focus on other files like phone.py which is very simple and template.py