correct httplib and urllib usage.