Cython added template statemonitor