Companion to the pull request #27 in risklib

See https://bugs.launchpad.net/openquake/+bug/1096880