ENH: Add python object HDF5 read/write support

Ready for review if we decide to use it.
should be "Must be same type as `a`" right?