Find And Replace Value In Array Python Definition