NWSRFS Write to File Method

def _write(self, session, openFile, replaceParamFile):
        """
        NWSRFS Write to File Method
        """
        # Write lines
        openFile.write('Number_Bands:    %s\n' % self.numBands)
        openFile.write('Lower_Elevation  Upper_Elevation  MF_Min  MF_Max  SCF  FR_USE  TIPM  NMF  FUA  PCWHC\n')

        # Retrieve NwsrfsRecords
        records = self.nwsrfsRecords

        for record in records:
            openFile.write('%s%s%s%s%.1f%s%.1f%s%.1f%s%.1f%s%.1f%s%.1f%s%.1f%s%.1f\n' % (
                record.lowerElev,
                ' ' * (17 - len(str(record.lowerElev))),  # Num Spaces
                record.upperElev,
                ' ' * (17 - len(str(record.upperElev))),  # Num Spaces
                record.mfMin,
                ' ' * (8 - len(str(record.mfMin))),  # Num Spaces
                record.mfMax,
                ' ' * (8 - len(str(record.mfMax))),  # Num Spaces
                record.scf,
                ' ' * (5 - len(str(record.scf))),  # Num Spaces
                record.frUse,
                ' ' * (8 - len(str(record.frUse))),  # Num Spaces
                record.tipm,
                ' ' * (6 - len(str(record.tipm))),  # Num Spaces
                record.nmf,
                ' ' * (5 - len(str(record.nmf))),  # Num Spaces
                record.fua,
                ' ' * (5 - len(str(record.fua))),  # Num Spaces
                record.plwhc))