return the first key in dict where value is name

def lookup(self,value):
        """ return the first key in dict where value is name """
        for k,v in self.iteritems():
            if value == v:
                return k
        return None