Then the easiest thing to do would be to start openvpn from within your python script.
Set the environment variables and do a os.system call or use the subprocess module.
That's genius! I will try that right away!
I kinda feel a little silly, as that is rather simple
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.