Replace Items In Array Python Definition Library