python: simplify service declaration.