close #126:Refactoring of python code. Now self.parent is used for assistants and kwargs