Subprocess (`https://docs.python.org/3/library/subprocess.html`) is the method by which you can spawn another process. code example
Example: python subprocess exception handling
try:
subprocess.check_output(...)
except subprocess.CalledProcessError as e:
print(e.output)