fix bug in python binding, move all numpy array creation methods to separate file in prep for new array subclassing