old_contents: try:
      from urlparse import urlparse
  except ImportError: # Python3
      from urllib import parse as urlparse
  
  try:
      _xrange = xrange
  except NameError:
      _xrange = range
  
new_contents: try:
      from urlparse import urlparse
  except ImportError: # Python3
      from urllib.parse import urlparse
  
  try:
      _xrange = xrange
  except NameError:
      _xrange = range
  
subject: Fix compat module for Python 3