A few sample applications that implement show the basics of sockets in python.
Python Sockets These are a very simple set of applications that are designed to illustrate the use of sockets in the python programming language.