def interactor(self, geneList=None, org=None):
geneList = geneList or []<EOL>organisms = organisms or []<EOL>querydata = self.interactions(geneList, org)<EOL>returnData = {}<EOL>for i in querydata:<EOL><INDENT>if not returnData.get(i["<STR_LIT>"]["<STR_LIT:name>"]):<EOL><INDENT>returnData[i["<STR_LIT>"]["<STR_LIT:name>"]] = {"<STR_LIT>": []}<EOL><DEDENT>returnData[i["<STR_LIT>"]["<STR_LIT:name>"]]["<STR_LIT>"].append(i)<EOL><DEDENT>return returnData<EOL>
Supposing geneList returns an unique item.