def __new__(self, *args, **nargs): # a tweak to cope with circular dependency global Layout, LayoutManager if Layout == None: from ecell.ui.model_editor.Layout import Layout if LayoutManager == None: from ecell.ui.model_editor.LayoutManager import LayoutManager return Command.__new__(self, *args, **nargs)