Open file and return a stream.

def open(self, path, binary=False):
        """Open file and return a stream."""
        if binary:
            return open(path, "rb")
        return open(path, encoding="utf-8")