Filter groups by name in Python API SDK

I am trying to retrieve a group by name using list_groups. Retrieving the entire list with client.list_groups() works perfectly. But if I use q= or query= or filter= I get an unexpected keyword error. If I just use the group name I get an invalid URL string error.

Pretty sure there has to be a way to do this, it works fine with HTTP requests. I just can’t find any documentation for the correct syntax.