Changed SWORD diagnose to use urllib.