terminal chat using python socket