<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_prj(self, filename):
 """ Saves prj WKT to given file. """

        with open(filename, "w") as fp:
            fp.write(self.prj)