Added simpler interface for cython