Python Dynamically Create Class Attributes Css Gradient