improve Python and C++ file hooks