class Struct(Structure):
    _fields_ = [('a', c_int), ('b', c_int)]

def __init__(self, a, b=2):
    super(Struct, self).__init__(a, b)

def print_values(self):
    print(self.a, self.b)
Default values in a ctypes Structure