use np.isfortran instead of direct access to flags