Please write a test for this. Once the test is written you can refactor it to be a little more python.  You can do this with a list comprehension in a single line.

`return [service for service in self if service.config.namespace == namespace]`