def restart(self): logger.info("Restarting the market maker...") os.execv(sys.executable, [sys.executable] + sys.argv) # # Helpers #