update python vs dart syntax