old_contents: from tornado import gen
  from tornado import httpclient
  
  from main.helper import *
  
  
  
  
  class API2MetNo(myRequestHandler):
      @web.removeslash
      @gen.coroutine
      def get(self, metno_request):
          metno_url = 'https://api.met.no/weatherapi/' + metno_request
  
          http_client = httpclient.AsyncHTTPClient()
          erply_user_request = yield http_client.fetch(httpclient.HTTPRequest(
              url=metno_url,
              method='GET'
          ))
  
          self.write(erply_user_request.body)
  
  
  
  
  handlers = [
      (r'/metno/(.*)', API2MetNo),
  ]
  
new_contents: import urllib
  
  from tornado import gen
  from tornado import httpclient
  
  from main.helper import *
  
  
  
  
  class API2MetNo(myRequestHandler):
      @web.removeslash
      @gen.coroutine
      def get(self, metno_request):
          arguments = {}
          if self.request.arguments:
              for x, y in self.request.arguments.iteritems():
                  arguments[x] = y[0]
  
          http_client = httpclient.AsyncHTTPClient()
          erply_user_request = yield http_client.fetch(httpclient.HTTPRequest(
              url='https://api.met.no/weatherapi/' + metno_request + '?' + urllib.urlencode(arguments),
              method='GET'
          ))
  
          self.write(erply_user_request.body)
  
  
  
  
  handlers = [
      (r'/metno/(.*)', API2MetNo),
  ]
  
subject: Send request arguments