fix a crash - need to escape the escape sign for python