code: def __parse_compound_origins():
      '''Gets and parses file'''
      filename = get_file('compound_origins.tsv')
  
      with io.open(filename, 'r', encoding='cp1252') as textfile:
          next(textfile)
  
          for line in textfile:
              tokens = line.strip().split('\t')
  
              if len(tokens) > 10:
                  chebi_id = int(tokens[1])
  
                  if chebi_id not in __COMPOUND_ORIGINS:
                      __COMPOUND_ORIGINS[chebi_id] = []
  
                  # Append CompoundOrigin:
                  comp_orig = CompoundOrigin(tokens[2], tokens[3],
                                             tokens[4], tokens[5],
                                             tokens[6], tokens[7],
                                             tokens[8], tokens[9],
                                             tokens[10])
                  __COMPOUND_ORIGINS[chebi_id].append(comp_origf __parse_compound_origins():
      '''Gets and parses file'''
      filename = get_file('compound_origins.tsv')
  
      with io.open(filename, 'r', encoding='cp1252') as textfile:
          next(textfile)
  
          for line in textfile:
              tokens = line.strip().split('\t')
  
              if len(tokens) > 10:
                  chebi_id = int(tokens[1])
  
                  if chebi_id not in __COMPOUND_ORIGINS:
                      __COMPOUND_ORIGINS[chebi_id] = []
  
                  # Append CompoundOrigin:
                  comp_orig = CompoundOrigin(tokens[2], tokens[3],
                                             tokens[4], tokens[5],
                                             tokens[6], tokens[7],
                                             tokens[8], tokens[9],
                                             tokens[10])
                  __COMPOUND_ORIGINS[chebi_id].append(comp_orig)
docs: Gets and parses file