fixed error message

pymsg variable did not exist