Python 3 compatibility in ghmm