Is there a way to create a completly isolated javascript environment in python? All I want to do is test if some potentially malicious code calls window.location, iframe.src or something similar, no ...