<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_workspace_attributes(namespace, workspace, attrs):
 """Update or remove workspace attributes. Args: namespace (str):
 project to which workspace belongs workspace (str):
 Workspace name attrs (list(dict)):
 List of update operations for workspace attributes. Use the helper dictionary construction functions to create these: _attr_set() : Set/Update attribute _attr_rem() : Remove attribute _attr_ladd() : Add list member to attribute _attr_lrem() : Remove list member from attribute Swagger: https://api.firecloud.org/#!/Workspaces/updateAttributes """

    headers = _fiss_agent_header({"Content-type":  "application/json"})
    uri = "{0}workspaces/{1}/{2}/updateAttributes".format(fcconfig.root_url,
                                                        namespace, workspace)
    body = json.dumps(attrs)

    # FIXME: create __patch method, akin to __get, __delete etc
    return __SESSION.patch(uri, headers=headers, data=body)