fix cython defined variables