def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def create_class(length):
            class S(Structure):
                _fields_ = [('x' * length, c_int)]