Improving python trace for layout creation and renaming
Layout creation was lacking trace, while renaming layout worked only on layout with an active view. This MR correct that.
Layout creation was lacking trace, while renaming layout worked only on layout with an active view. This MR correct that.