ugh... but we want to also be able to write out hdf5 (if we have hdf5). Hows about:

```python
if HAVE_H5PY:
    # do the magic to write out HDF5
else:
    # do the magic to write out json?