new_contents: #!/usr/bin/env python
  import requests
  import json
  
  class Ubiquity:
      ''' Methods to get information from the Ubiuity radio modem '''
      _host = 'http://192.168.1.20'
      _user = 'ubnt'
      _pass = 'ubnt'
      _loginPage = 'login.cgi'
      _statusPage = 'status.cgi'
      _session = None
  
      def __init__(self):
          ''' Prep the object by starting a new session and logging in '''
          self._session = requests.Session()
          session.get(self._host+self.loginPage)  # This line has magic sauce
          data={'uri': '','username': self._user,'password': self._pass}
          # Use files trick to post using multipart/form-data encoding.
          session.post(
              self._host+self.loginPage,
              files={k: (None, v) for k, v in data.items()},
              verify=False
          )
  
      def getRSSI(session):
          ''' Returns the RSSI value (0-100) '''
          pjson = json.loads(session.get(HOST+'/status.cgi'))
          return pjson.['RSSI']
  
subject: Move RSSI method into new Ubiquity class