Correct. A bash script should be capable of sourcing if you then source the bash script. Not sure about calling it from Python, can you send me the script you are using to do this?