must write the last record with something like ```python f_out.write(record) ```
must write the last record with something like