class Antibody:

    def __init__(self, toSend):
        self.raw = toSend
self.pdbcode = ''
self.year = ''

def attributes(self):
    return [('self.' + name) for name in self.__dict__]
display an object's attributes in python