Simplify CPython service code.
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>