Well, have a look at the example file "python_functions.mfa". Basically, you can either register the function, or call it by name:
Code:
import interface
@interface.register('echo')
def my_echo_function(string):
return string
def echo(string):
return string
and in your MFA, first run the script, then add a string argument (Add parameter String$("Python object", "Hi!")), then call either the registered function (Call registered function "echo") or the global function (Call global "echo"). To get the return value, you simply do StringValue$("Python object", Return( "Python object", 0)), and that's about it