Port _LayoutBase.py.
Port _ContainerLayouter.py.