<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_password(self):

        '''
            a method to retrieve the password for the group mosquitto server

        :return: string with group mosquitto server password

        NOTE:   result is added to self.password property 
        '''

        import requests
        url = '%s/mqtt' % self.endpoint
        params = {
            'group': self.group_name
        }
        response = requests.put(url, params=params)
        response_details = response.json()
        self.password = response_details['password']

        return self.password