def _qualNameWalker(qualName):
 (yield (qualName, []))
 qualParts = qualName.split('.')
 for index in range(1, len(qualParts)):
  (yield ('.'.join(qualParts[:(- index)]), qualParts[(- index):]))

def _qualNameWalker ( qualName ) : ( yield ( qualName , [ ] ) ) qualParts = qualName . split ( '.' ) for index in range ( 1 , len ( qualParts ) ) : ( yield ( '.' . join ( qualParts [ : ( - index ) ] ) , qualParts [ ( - index ) : ] ) )
given a python qualified name .