Interfacing with LibDAI using Cython.