Hello,

Actually, I've posted this problem to StackOverflow few days ago and get no answers - https://stackoverflow.com/questions/49011021/pyrex-pyframeobject-is-not-declared
I found one solution - compile on CentOS 6.5 with Python2.7 and put *.so file to CentOS 7.4 and it looks working now, but I'm not sure if everything is ok, because I faced a lot of problems with other approaches. 
Could you help, please, to find a 100% right solution?