Migrated from etree to minidom and from urllib2 to urllib.
Working now.