toying around...
more cython toying
new K seems working
added a test for K
cythonizing