Implement decorators in cython