Dynamo files in batch with Python

Hi,
Is there a way to run Dynamo files in batch using Python? Or connect to Dynamo with Python in some sort of way.

There used to be a way sort of

and maybe Orestra can do it too