numpy uses `np.compat.isfileobj` to determine if fromfile can be used