Replace Param File Write to File Method

def _write(self, session, openFile, replaceParamFile):
        """
        Replace Param File Write to File Method
        """
        # Retrieve TargetParameter objects
        targets = self.targetParameters

        # Write lines
        openFile.write('%s\n' % self.numParameters)

        for target in targets:
            openFile.write('%s %s\n' % (target.targetVariable, target.varFormat))