old_contents: import requests
  import wia
  
  '''
  wia_post:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain data for post request
  '''
  def post(path, kwargs):
      key = 'Bearer ' + wia.secret_key
      url = wia.rest_api_base + '/' + path
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      if 'file' in kwargs:
          r = requests.post(url, data={'name': kwargs['name'], 'data': kwargs['data']}, headers=headers, files={'file': kwargs['file']})
      else:
          r = requests.post(url, json={'name': kwargs['name'], 'data': kwargs['data']}, headers=headers)
      try:
          r = r.json()
      except ValueError:
          pass
      return r
  
  '''
  wia_put:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain data for put request
  '''
  def put(path, **kwargs):
      url = wia.rest_api_base + '/' + path
      key = 'Bearer ' + wia.secret_key
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      data = kwargs
      r = requests.put(url, json=data, headers=headers)
      return r.json()
  
  '''
  wia_get:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain query params
  '''
  def get(path=None, **kwargs):
      key = 'Bearer ' + wia.secret_key
      url = wia.rest_api_base + '/' + path
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      r = requests.get(url, headers=headers, params=kwargs)
      return r.json()
  '''
  wia_delete:
      args:
          path: string specifying url path
  '''
  def delete(path):
      url = wia.rest_api_base + '/' + path
      key = 'Bearer ' + wia.secret_key
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      r = requests.delete(url, headers=headers)
      return r
  
new_contents: import requests
  import wia
  
  '''
  wia_post:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain data for post request
  '''
  def post(path, kwargs):
      key = 'Bearer ' + wia.secret_key
      url = wia.rest_api_base + '/' + path
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      if 'file' in kwargs:
          kwargsCopy = dict(kwargs)
          del kwargsCopy['file']
          r = requests.post(url, data=kwargsCopy, headers=headers, files={'file': kwargs['file']})
      else:
          r = requests.post(url, json=kwargs, headers=headers)
      try:
          jsonResponse = r.json()
      except ValueError:
          pass
      return jsonResponse
  
  '''
  wia_put:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain data for put request
  '''
  def put(path, **kwargs):
      url = wia.rest_api_base + '/' + path
      key = 'Bearer ' + wia.secret_key
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      data = kwargs
      r = requests.put(url, json=data, headers=headers)
      return r.json()
  
  '''
  wia_get:
      args:
          path:   string specifying url path
          kwargs: variable-length dict which can
                  contain query params
  '''
  def get(path=None, **kwargs):
      key = 'Bearer ' + wia.secret_key
      url = wia.rest_api_base + '/' + path
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      r = requests.get(url, headers=headers, params=kwargs)
      return r.json()
  '''
  wia_delete:
      args:
          path: string specifying url path
  '''
  def delete(path):
      url = wia.rest_api_base + '/' + path
      key = 'Bearer ' + wia.secret_key
      headers = {'Authorization': key,
                  'x-app-key': wia.app_key}
      r = requests.delete(url, headers=headers)
      return r
  
subject: Fix for dictionaries