define lambda function that returns self.file.writelines field, use it as an argument for property function, put the result in writelines.
writelines = property ( lambda self : self . file . writelines )