code: def __type2python(cls, value):
          
          if isinstance(value, string_types):
              if value is 'null':
                  return None
              elif value in ('true', 'false'):
                  return False if value == 'false' else True
              elif value.replace('.', '', 1).isdigit():
                  return eval(value)
              elif value.startswith('{') and value.endswidth('}'):
                  try:
                      return json.loads(value)
                  except ValueError:
                      return value
          return value
docs: :Description: Convert javascript value to python value by type.
          :param value: Value to transform.
          :type value: None, bool, int, float, string
          :return: None, bool, int, float, string