https://calmops.com/programming/python/dynamic-code-generation-python/
Dynamic Code Generation in Python: Creating and Executing Code at Runtime