Python Replace Text In String With Variables