Letting the write method on datafilee "return self" so it can be chained by "close" to write a file to disk.