def METHOD_NAME(*args, **kwargs):
    self = args[0]
    self.process = omero.processor.ProcessI(
        self.ctx, sys.executable, self.props(), self.params(),
        Popen=Popen, callback_cast=pass_through)
    try:
        func(*args, **kwargs)
    finally:
        self.process.cleanup()