Hello,
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?