Can you have file type-specific key bindings in Vim?
You can use :map <buffer> … to make a local mapping just for the active buffer. This requires that your Vim was compiled with +localmap. So you can do something like autocmd FileType python map <buffer> <C-G> …