External API Access

Hello. First post!
What’s the PYTHONPATH variable I need to set to import the flame module in an external script/app?
The idea is to connect to a local running Flame session and do stuff form outside. Similar to the flapi and resolve APIs.
Cheers
Abel