Replace Items In Array Python