HDF5File multiple outputs

I am looking for a way to save multiple Functions to the same HDF5File. I do not want to override the previous Functions but append them. My current file creation and writing to the file looks like the following.

P1 = FiniteElement(“Lagrange”, mesh.ufl_cell(), 1)
P2 = VectorElement(“Lagrange”, mesh.ufl_cell() ,2)
P3 = FiniteElement(“Lagrange”, mesh.ufl_cell() ,2)

T = FunctionSpace(mesh, P3)
VP = FunctionSpace(mesh, MixedElement([P2,P1]))
vp = Function(VP)
temp = Function(T)
file8 = HDF5File(comm, “output.h5”,“w”)
file8.write((vp, temp), “output.h5”,time)

I expected there to be an error

Traceback (most recent call last):
File “primary.py”, line 241, in
file8.write((vp, temp), “output.h5”,time)
TypeError: in method ‘HDF5File_write’, argument 2 of type ‘dolfin::Mesh const &’

I was wondering if there was a way to code this in one line or will it be two separate lines. Thank you.