Accessing Process Executor through Python

Hello,

Are there options for python to control flow groups and process executors?

For example, I want the machines to be controlled by flow groups and process executors but enter failure states when a python script reaches a certain count of parts passing through.

I currently am not able to pause or suspend a process executor using python code as it seems to take priority.