Typeerror Numpy Int32 Object Is Not Iterable