Started implementation of Cython state class