code: def run(self, cmd):
          
          # TODO: can this be removed ?
          import __main__
          main_dict = __main__.__dict__
          return self.runctx(cmd, main_dict, main_dict)
docs: Profile a single executable statement in the main namespace.