<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_members(self):
 """Return all members in the group as CSHMember objects"""

        res = self.__con__.search_s(
                self.__ldap_base_dn__,
                ldap.SCOPE_SUBTREE,
                "(memberof=%s)" % self.__dn__,
                ['uid'])

        ret = []
        for val in res:
            val = val[1]['uid'][0]
            try:
                ret.append(val.decode('utf-8'))
            except UnicodeDecodeError:
                ret.append(val)
            except KeyError:
                continue

        return [CSHMember(self.__lib__,
                result,
                uid=True)
                for result in ret]