def dictfindall(dictionary, element):
 res = []
 for (key, value) in iteritems(dictionary):
  if (element is value):
   res.append(key)
 return res

def dictfindall ( dictionary , element ) : res = [ ] for ( key , value ) in iteritems ( dictionary ) : if ( element is value ) : res . append ( key ) return res
returns the keys whose values in dictionary are element or .