This isn’t a ‘smart’ fix but it’s worked for me in similar situations… Units default to imperial when using python (API or Dynamo python nodes) so I just convert the units to sqm by multiplying the double by the conversion factor. For example to get the sqm value:
area = el.LookupParameter(‘Flow’).AsDouble()
area = area * 10.76391041671
This table is handy for it: https://metricunitconversion.globefeed.com/area_conversion_table.asp