<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_commands(self, ctx):
 """ list all commands exposed to engineer """



        self.connect(ctx)

        if not hasattr(ctx, "widget"):
            return super(Engineer, self).list_commands(ctx)

        return ctx.widget.engineer_list_commands() + super(Engineer, self).list_commands(ctx)