Check If Element Exist In Array Python Memory