Python vars() built-in function

Python vars() built-in function

From the Python 3 documentation Return the dict attribute for a module, class, instance, or any other object with a dict attribute.