Python Find And Replace In Array Python Memory