Bash Loop Through String Python Replace List