converts HTML to HAML for the HamlPy compiler