In terms of ctor syntax, I think python is more flexible and less "clean" than java. More like c++.
return riskgenerator.BasicDealValuationGenerator(envDetails)
Luckily I know BasicDealValuationGenerator is a class in the riskgenerator module, so I know this is likely be calling the ctor.
return riskgenerator.BasicDealValuationGenerator(envDetails)
Luckily I know BasicDealValuationGenerator is a class in the riskgenerator module, so I know this is likely be calling the ctor.