Automated kernel module generator using python