'executes javascript js in current context
as opposed to the (faster) self.execute method, you can use your regular debugger
to set breakpoints and inspect the generated python code'

def execute_debug(self, js):

    code = translate_js(js, '')
    filename = (((('temp' + os.sep) + '_') + hashlib.md5(code).hexdigest()) + '.py')
    try:
        with open(filename, mode='w') as f:
            f.write(code)
        execfile(filename, self._context)
    except Exception as err:
        raise err
    finally:
        os.remove(filename)
        try:
            os.remove((filename + 'c'))
        except:
            pass
