Python Replace Text In String With Variable