working on python
remove python set_exit_handler code