Basic connections using socket programming in python