python runner less annoying when tests fail; define the 'window' object to refer to 'global' to mimick browsers; improve ls