Another alternative which avoids writing Python extension modules, could be the built-in foreign function library: the ‘ctypes’ module.
It allows to load external DLLs (load modules) and define parameters to be used for the call to its entry points. But to use it for z/OS system services it depends on whether there is a system DLL that provides the functionality.
It would be good to have more z/OS specific functionality available for Python including record I/O…
Cheers,
MM.