<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_application(self, application_id, **kwargs):
 """ Add an application to a group. `application_id` is the name of the application to add. Any application options can be specified as kwargs. """

        path = 'group/%s/application' % self.id

        data = {'application_id': application_id}
        if kwargs:
            data["options"] = kwargs

        self.api.request(path, data)