python return value related bug fixed
added fix for InsertEnter cursor restoration