Update service.py

refactored and improved comment