added replace method, which allows layouts to replace their children
inline with a single operation
pep 8 formatting
pep 8 formatting