How to control blueptint creation and editing from another software via sockets

I have already build an application in Pharo ( http://pharo.org/ ) that allows me to control and script Blender from Pharo via a socket bridge that sends python strings that then Blender executes. I would like to do the same Unreal Engine 4.9 editor , this way I will be able to use Pharo not only to script blueprints on the fly but also control and automate the editor from Pharo.

Can I do this via blueprints ? Will I need to extend the editor ? Will I need to create an editor Plugin ? What is the best course of action ?