This series of lessons will teach you how to take your Arduino projects to the next level by having the Arduino interact with the Python programming language. Python is a free program you can download. Since you have already learned the fundamentals of programming through our first 20 Arduino lessons, learning Python will be a snap!
Especially, Look over the following 2 lessons for the Ethernet connectivity.
Python with Arduino LESSON 16: Simple Client Server Configuration over Ethernet. This lesson will help you get your arduino set up as a server, and talking to a client in Python.
Python with Arduino LESSON 17: In this lesson we use the arduino as a server and Python as a client. Python sends a request to measure temperature or pressure. Arduino reads the request, makes the requested measurement, and then sends the data back.
For more detail, go to the original post.