add possible fix for pyhsmm issue #29