import urllib2 to query.py
Merge remote-tracking branch 'upstream/master'