If you have some kind of library that does those kind of things already, try to use it through ctypes. I have successfully wrapped fmod in ctypes before for example. Regards, Guillaume