changed to urllib2
encoding issues fixed