function that takes in a html file, then open an website in a variable to replace all of its' body with the html file
import webbrowser def replace_body(html_file): website = "http://www.khanacademy.org/" html = open(html_file, "r") webpage = html.read() webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2)