<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, output_filepath):
 """ serialize the ExmaraldaFile instance and write it to a file. Parameters output_filepath : str relative or absolute path to the Exmaralda file to be created """

        with open(output_filepath, 'w') as out_file:
            out_file.write(self.__str__())