description and source code for python chat program