A few sample applications that implement show the basics of sockets in  python.