Tools.web: use urllib instead of custom urlparser