def save_dropbox_data(username, access_token):
    """saves dropbox access information for username."""
    data = {
        "api_version": 2,
        "access_token": access_token,
    }
    dumped = pickle.dumps(data)
    encoded = base64.b64encode(dumped)
    keychain.set_password(DB_SERVICE, username, encoded)
saves dropbox access information for username.
lib/stashutils/dbutils.py