Update service.py

Debug mode