Removed custom urlparse compat
Removed unused compat code