socket experiment in python