<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def writeParams(rawfilepath, outputpath, isolationWindow, coElute=0):
 """Generate and write a pParse parameter file. :param rawfilepath: location of the thermo ".raw" file :param outputpath: path to the output directory of pParse :param isolationWindow: MSn isolation window that was used for the aquisition of the specified thermo raw file :param coElute: :returns: file path of the pParse parameter file """

    paramText = generateParams(rawfilepath, outputpath, isolationWindow,
                               coElute)
    filename, fileext = os.path.splitext(os.path.basename(rawfilepath))
    paramPath = aux.joinpath(outputpath, filename+'.pparse.para')
    with open(paramPath, 'wb') as openfile:
        openfile.write(paramText)
    return paramPath