Creating .webarchive files in Python