def open_h5file(fname="py1.h5"): try: os.remove(fname) except: pass ar=h5.archive(fname,"w") return ar
def iar(fname="py1.h5"): ar=h5.archive(fname,"r") return ar