How to control my character with outside python scripts

basically I am trying to control my character via python.

The closest thing I could find was Controlling a built project using Python - #4 by RedTechSRB

but I am fairly new to UE and do not really know how to get started.

Currently I am trying to do it with 3rd-person template.

Any help would be greatly appreciated.