code: def _login(self):
          
          self.logger.debug("Logging into " + "{}/{}".format(self._im_api_url, "j_spring_security_check"))
          self._im_session.headers.update({'Content-Type':'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36'})
          #self._im_session.mount('https://', TLS1Adapter())
          #self._im_verify_ssl = False
          self.j_username = self._username
          self.j_password = self._password
          requests.packages.urllib3.disable_warnings() # Disable unverified connection warning.
          payload = {'j_username': self.j_username, 'j_password': self.j_password, 'submit':'Login'}
          
          # login to ScaleIO IM
          r = self._im_session.post(
              "{}/{}".format(self._im_api_url,"j_spring_security_check"),
              verify=self._im_verify_ssl,
              #headers = {'Content-Type':'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36'},
              data=payload)
          self.logger.debug("Login POST response: " + "{}".format(r.text))
  
          self._im_logged_in = True
          
          """
          ADD CODE:
          Check if this is IM have existing configuration. If so populate ScaleIO_configurtion_object
          """
docs: LOGIN CAN ONLY BE DONE BY POSTING TO A HTTP FORM.
          A COOKIE IS THEN USED FOR INTERACTING WITH THE API