Codeignitor Calls a python file to get information

Hello

This may be a long stretch but I though it may be worth asking here.

I have a website writen in codeignitor V4 PHP framework and loaded to a sub domain,

Cyberpanel is installed on Ubuntu V20 LTS. One click install running on vultr.

From codeignitor model I am trying to call a store procedure that returns multipal tables and codeignitor cannt handle the multipal tables being returned and only allows me to access the first table it returns. I can call the store procedure no issues with python.

Is it possible to make a python file within codeignitor and call it from a model and then pass the results back to PHP.