WIP: Changing np.fromfile handling to Python API