def fresh_output_manager_inst():
 global manager
 if manager.is_alive():
  manager.in_queue.put(POISON_PILL)
  manager.join()
 manager = OutputManager()
 manager.start()
 return manager

def fresh_output_manager_inst ( ) : global manager if manager . is_alive ( ) : manager . in_queue . put ( POISON_PILL ) manager . join ( ) manager = OutputManager ( ) manager . start ( ) return manager
creates a new "manager" instance at the module level .