can you explain sockets in python with an example? i am a beginner so please use easy to understand language