Added a get_params utility

This is needed to fix https://bugs.launchpad.net/oq-engine/+bug/1393826.
The tests are green: https://ci.openquake.org/job/zdevel_oq-risklib/78/