Python Dynamically Add Attribute Style