This is clearly wrong. 
1) Scenario Risk outputs LossMap objects. 
2) You are double indexing this params, so the value in this dictionaries should be an indexable like a list

3) As far I know Scenario Risk can only use one hazard_id and produce one output_id. Is it possible to use a simpler data type here?