Is is possible to run a python script along side our UE4 application and communicate with it?

Can we run a python script which uses libraries like OpenCV,etc and be able to use that data in our game?
For example if I make a Thumbs Up gesture to a camera then I want my actor to jump.
Any guidance will be appreciated. Thank You.