Some progress in writing cython interface.