Refactored MQ __main__.py files to a single _execute method