Fix urlopen py3k support
Add ElementTree fallback
Fix ref_type typos