histfactory: missing import of measurements_from_xml at module level and generate dictionaries at module level