Python Execute Bash Command Substitution