set class var with name of var in str pytthon code example
Example: python set class variable
class MyClass:
static_elem = 123 # This is a static element belonging to the class
def __init__(self):
self.object_elem = 456 # This is an instance / object element