code: def get_friends(self):
          
          for k, v in iter(self.user_data.language_data.items()):
              data = []
              for friend in v['points_ranking_data']:
                  temp = {'username': friend['username'],
                          'id': friend['id'],
                          'points': friend['points_data']['total'],
                          'languages': [i['language_string'] for i in
                                        friend['points_data']['languages']]}
                  data.append(temp)
  
              return data
docs: Get user's friends.