change cookie maintain method to cookieHandler like urllib2