make constructor take cython vars