I have this piece of bash script code I need executed via Python
asdf=$(function --varname var)
What would be the best way to go about it?
I have used subprocess.run for basic function calls, but have no idea how to parse the line for variable assignments