Insert Php Array Into String Python Replace Characters