Help. Passing python command to home assistant

I want to pass command from external python to home assistant I am trying to buld my own tts alexa local and i dont know how to pass command to Ha here is the screenshot below.