<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, mfile="multiplicons.txt", sfile="segments.txt", clobber=False):
 """ Writes multiplicon and segment files to the named locations. - mfile, (str) location for multiplicons file - sfile, (str) location for segments file - clobber, (Boolean) True if we overwrite target files """

        if not clobber:
            if os.path.isfile(mfile):
                raise IOError("Multiplicon file %s already exists." % mfile)
            if os.path.isfile(sfile):
                raise IOError("Segments file %s already exists." % sfile)
        self._write_multiplicons(mfile)
        self._write_segments(sfile)