Python Dynamically Create Class Attributes And Methods