Python usage of the Socket class.