Python Replace String Using Sed With Variables In An Experiment