def parse_json(entrez): annotation = getJson(base_url+str(entrez)) mygene = ProteinBox() mygene.setField('description',get(annotation,'summary').split('.')[0]) mygene.setField('claims',get_claims(annotation)) return mygene