fixing a bug in service.py where app.service.{start,stop} did not work properly