fix python signal (SIGINT) blocking issue.