def aton(sr):
 try:
  return int(sr)
 except ValueError:
  try:
   return float(sr)
  except ValueError:
   return False

def aton ( sr ) : try : return int ( sr ) except ValueError : try : return float ( sr ) except ValueError : return False
transform a string to a number .