class A(object):

    def __init__(self):
        self.a = 3
self.b = 5
self.c = 6

def return_class_variables(A):
    return A.__dict__
if __name__ == '__main__':
    a = A()
getting a dictionary of class variables and values