Find And Replace Item In Array Python Definition