Restore pyhsmm