Python Numpy Nonzero Acceleration