[pymorse] Python2 compatibility