code: def idsKEGG(organism):
      
      ORG=urlopen("http://rest.kegg.jp/list/"+organism).read()
      ORG=ORG.split("\n")
      final=[]
      for k in ORG:
          final.append(k.split("\t"))
      df=pd.DataFrame(final[0:len(final)-1])[[0,1]]
      df.columns=['KEGGid','description']
      field = pd.DataFrame(df['description'].str.split(';',1).tolist())[0]
      field = pd.DataFrame(field)
      df = pd.concat([df[['KEGGid']],field],axis=1)
      df.columns=['KEGGid','gene_name']
      df=df[['gene_name','KEGGid']]
      return df
docs: Uses KEGG to retrieve all ids for a given KEGG organism
  
      :param organism: an organism as listed in organismsKEGG()
  
      :returns: a Pandas dataframe of with 'gene_name' and 'KEGGid'.