Python Dynamically Create Class Attributes And Methods Of Library