Added service.py with only what is needed