Returns all the policy names for a given user

def _get_policies(self):
        """Returns all the policy names for a given user"""
        username = self._get_username_for_key()
        policies = self.client.list_user_policies(
            UserName=username
        )
        return policies