Check Value Contains In Array Python Memory