'Create a new <Task> element
:param attributes: Attributes for a task'

def __init__(self, attributes, **kwargs):

    super(Task, self).__init__(**kwargs)
    if isinstance(attributes, string_types):
        self.value = attributes
    else:
        self.value = json.dumps(attributes)
