'Sets class attributes from the keyword arguments passed to constructor.
:param **kwargs: Dict of keyword arguments passed to constructor.'

def __init__(self, **kwargs):

    self.xmlrpc_url = kwargs['xmlrpc_url']
    self.user = kwargs['user']
    self.password = kwargs['password']
    self.fallback_profile = kwargs['fallback_profile']
    if self.xmlrpc_url:
        self.server = xmlrpclib.Server(self.xmlrpc_url)
        self.token = self.server.login(self.user, self.password)
    self.num_attempts = int(kwargs.get('num_attempts', 2))
