code: def python_type(textx_type_name):
      
      return {
          'ID': text,
          'BOOL': bool,
          'INT': int,
          'FLOAT': float,
          'STRICTFLOAT': float,
          'STRING': text,
          'NUMBER': float,
          'BASETYPE': text,
      }.get(textx_type_name, textx_type_name)
docs: Return Python type from the name of base textx type.