use urllib2 transport in search command for python 3 compatibility