Why do you need to list the attributes? Seems that semantically your class is a collection. In this cases I recommend to use enum:
import enum
class myClass(enum.Enum):
a = "12"
b = "34"
List your attributes? Nothing easier than this:
for attr in myClass:
print("Name / Value:", attr.name, attr.value)