<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):
 """ write all needed state info to filesystem """

        dumped = self._fax.codec.dump(self.__state, open(self.state_file, 'w'))