cython update model