Added python code to write html files