def iter_all(class_name):
 for (cls, wdict) in six.iteritems(live_refs):
  if (cls.__name__ == class_name):
   return six.iterkeys(wdict)

def iter_all ( class_name ) : for ( cls , wdict ) in six . iteritems ( live_refs ) : if ( cls . __name__ == class_name ) : return six . iterkeys ( wdict )
iterate over all objects of the same class by its class name .