<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, what):
 """writes something to the Purr pipe"""

        try:
            open(self.pipefile, "a").write(what)
        except:
            print("Error writing to %s:" % self.pipefile)
            traceback.print_exc()