[python] How to write and save html file in python?