Same comment as for the hazard export, use a name convention and retrieve the export_fn from the globals(). BTW, there is some duplication of logic between export/hazard.py and export/risk.py, I would not mind if you decided to remove it ;-)