The REPY_FN macro collection is the real powerhouse of the REPY API. Using the exposed API functions, these macros will allow you to execute Python code as part of your mod code functions, with Python scopes that correspond to the scope of the mod code functions themselves, and a control of flow that feels natural.
Interlacing your moc code functions with Python code serves as an excellent workaround for native code being unable to call mod code.
Go to The REPY_FN Overview for more information.