def newfile(self, outputpath,logmode):
        """Use this method for adding a file after creating the object without one."""
        if logmode=='a' and outputpath !='':      # are we appending or creating a newfile ?
            self.outputfile=open(outputpath,'a')
            self.putout('\n\n')
        elif outputpath != '':
            self.outputfile=open(outputpath,'w')
Use this method for adding a file after creating the object without one.
recipes/Python/259176_StandOut__Flexible_Output_Object/recipe-259176.py