def getPossibleOffers(recipient, os): ret = [] for offer in os: ret.append(offers[offer]) return ret offers={}