esp8266 to python communication using sockets. I suffered so you won't have to.
server is pretty self explanatory client was designed to be run on a ugv with 2 motors running on a l298n motor driver or any other suitable driver with the help of a iot enabled wifi chip(esp8266 used in this case). drop a mail if u have any doubts.