Insert Php Array Into String Python Functions