code: def get_session_key(limedict):
      
      url = limedict['url']
      user = limedict['username']
      password = limedict['password']
      params = {'username': user, 'password': password}
      data = set_params('get_session_key', params)
      req = requests.post(url, data=data, headers=headers)
      return {'token': req.json()['result'], 'user': user, 'url': url}
docs: This function receive a dictionary with connection parameters.
          { "url": "full path for remote control",
            "username: "account name to be used"
            "password" "password for account"}