Fix exports.
No need to expose functor to Python.
Make HDF5 dependency optional.