a new cython version where template is also handle at python level