Now, this is what I do, and I think it's not very efficient any suggestions?

for inst in self.Portfolio:
    if  self.Portfolio[ inst.Key ].Invested :
        #;do some stuff