python 3 needs urllib2.urlopen
use format for output