Url-encoding sample using socket programming in python