def get_best_unit(unit_a, unit_b):
 a = DATETIME_UNITS[unit_a]
 b = DATETIME_UNITS[unit_b]
 if (a == 14):
  return unit_b
 if (b == 14):
  return unit_a
 if (b > a):
  return unit_b
 return unit_a

def get_best_unit ( unit_a , unit_b ) : a = DATETIME_UNITS [ unit_a ] b = DATETIME_UNITS [ unit_b ] if ( a == 14 ) : return unit_b if ( b == 14 ) : return unit_a if ( b > a ) : return unit_b return unit_a
get the best of two units .