def get_fields(self):
    ret = []
for nm in dir(self):
    if not nm.startswith('__') and not callable(getattr(self, nm)):
        ret.append('self.' + nm)
return ret
a = Antibody(0)
print(a.get_fields())
display an object's attributes in python