cleans duplicate <html> tags and removes old python css includes