Added static typing in Cython