For Python, have you tried the sh library? <a href="http:&#x2F;&#x2F;amoffat.github.io&#x2F;sh&#x2F;" rel="nofollow">http:&#x2F;&#x2F;amoffat.github.io&#x2F;sh&#x2F;</a><p>String interpolation isn&#x27;t nearly as nice as Perl or Bash, but it&#x27;s possible. <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;4450610&#x2F;55" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;4450610&#x2F;55</a>