Restrict scope of h5py import