changing second call of connection.get_all_groups() to connection.get_all_groups(names=[group_name])