old_contents: """Utilities for the auth functionality"""
  import urllib
  
  def flat_url(url, **kw):
      """Creates a URL with the query param encoded"""
      url += '?' + urllib.urlencode(kw)
      return url
  
new_contents: """Utilities for the auth functionality"""
  from .compat import urlencode
  
  def flat_url(url, **kw):
      """Creates a URL with the query param encoded"""
      return url + '?' + urlencode(kw)
  
subject: Use the compat urlencode in utils