Python Dynamically Create Class Attributes Css Box