Read pandas data and convert it to IMMA
Following module provides a Python API to IMMA files:

import IMMA


You could use write()

opfile=open('some_output_file.imma','w')
for ob in obs:
    IMMA.write(ob,opfile)


More info could be found here.