Make sure the whole response data is read when using urllib2.urlopen

The read method does not guarantee to retrieve the whole data from urlopen's result.
Using readlines instead will do the trick.