def write(self, data, flags='w'):
        f = None
        try:
            f = open(self.abspath(), flags)
            f.write(data)
        finally:
            if f:
                f.close()
write some text to the physical file, assuming the node is a file
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/Node.write