Numpy Loop Through Array Python Memory