'Profile an exec-compatible string in the script
environment.
The globals from the __main__ module are used as both the
globals and locals for the script.'

def run(self, cmd):

    import __main__
    dict = __main__.__dict__
    return self.runctx(cmd, dict, dict)
