Run Fenics Platform from Maya

So, I’d really like to run some Python scripts in Maya that use Fenics Computing Platform (see Fenics Project for more information on this). I have a script in Python 3 that uses Fenics Modules, this script modifies some meshes. At the moment my pipeline is: I work with fenics (through a software container, Docker) then I import the meshes in Maya and work on them. I’d like to directly call the script that works with Fenics inside Maya to optimize the pipeline. Is that possible in your opinion?