URL normalization for Python
