moved skeleton feature to Cython, now reasonably fast