def bases_mro(bases):
 for base in bases:
  for class_ in base.__mro__:
   (yield class_)

def bases_mro ( bases ) : for base in bases : for class_ in base . __mro__ : ( yield class_ )
yield classes in the order that methods should be looked up from the base classes of an object .