Adding Code to generate Ctypes hooks for plugins.