def main(): maker = URLMaker() urls = maker.urls(144250,145000) hacker = Hacker() with open("log.txt", "w") as a_file: hacker.set_file(a_file) hacker.set_urls(urls) hacker.hack()