Some more wpart output
Replace buggy safe_open_h5 by working LockedH5File
Prune some unused imports