class Table(object):
    """A CSV backed SQL table."""

@property
def fieldnames(self):
    with open(self.filename) as f:
        return csv.DictReader(f).fieldnames

@fieldnames.setter
def fieldnames(self, fieldnames):
    with open(self.filename, 'w') as f:
        pass
descriptor 'getter' requires a 'property' object but received a 'function'