Python-style conditional constructs in attribute dictionaries

See https://github.com/a1s/HamlPy/blob/master/reference.md#conditional-attributes

This should close #38 and #111.