[bugfix] py_xio memory leak