FIXED:

Line 161 of class_mist.py is now:

self.mist.write( '# process ' + str(pid) + ' thread ' + str(tid) + ' #\n' )