This function receive a dictionary with connection parameters.
        { "url": "full path for remote control",
          "username: "account name to be used"
          "password" "password for account"}

def get_session_key(limedict):
    """This function receive a dictionary with connection parameters.
        { "url": "full path for remote control",
          "username: "account name to be used"
          "password" "password for account"}"""
    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}