API conversion helper script, minor EPANET source adjustments.