Numpy Loop Through Array Python Methods And Functions