'Get all accessible accounts
@return: dict {account_id: (rootFolderId, recycleBinId)}'

def fetch_accounts(self, root):

    (response, message) = self._send_request(path='accounts')
    if (not response):
        return (None, message)
    accounts = {}
    data = response.get('data')
    if (data and (type(data) is list)):
        SubElement = etree.SubElement
        for account_data in data:
            account_id = account_data.get('id')
            account = SubElement(root, 'account', id=str(account_id))
            account_name = account_data.get('name')
            name = SubElement(account, 'name')
            name.text = account_name
            accounts[account_id] = (account_name, account_data.get('rootFolderId'), account_data.get('recycleBinId'))
    return (accounts, None)
