Teamspeak 3 already has a G15 plugin.

go to teamspeak > settings > plugins

i dont know if the one you are suggesting is better or works. if it is let me know