def process_url(url):
  """Return stat and printer-friendly versions of URL of MP page."""
  url_prefix = 'https://www.mountainproject.com/route/'
  # inserting 'stats/' into url to get MP stats for each route
  stats_url = url_prefix + 'stats/' + url[len(url_prefix):]
  printer_url = url + '?print=1'
  return stats_url, printer_url