<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_stripchart(self, stripchart='overall', expose_data=True):
 """ Extract a specific stripchard and exposes the data in the namespace """

        csv_fname = self.fname.split(os.sep)[-1].replace(".usc", ".csv")
        scp_fname = self.fname.split(os.sep)[-1].replace(".usc", ".SCP")
        case_details = {'case': self.fname.__repr__()[1:-1],
                        'stripchart': stripchart,
                        'target': self.path.__repr__()[1:-1] + csv_fname}
        script = STRIPCHART_EXTRACTION_TEMPLATE.substitute(case_details)
        with open(self.path + scp_fname, 'w') as fobj:
            fobj.write(script)
        self.case.visible = True
        self.case.application.playscript(self.path + scp_fname)
        self.case.visible = False
        os.remove(self.path + scp_fname)
        if expose_data is True:
            self.stripcharts[stripchart] = unisim_csv_formatting(self.path,
                                                                 csv_fname)
        if os.path.isdir(self.path+'trends') is not True:
            os.mkdir(self.path + 'trends')
        shutil.copy(self.path + csv_fname,
                    self.path + 'trends\\{}.csv'.format(stripchart))
        os.remove(self.path + csv_fname)