igc/writer: Make fix extension formatting Python 3 compatible