Fixed bug and clean code in service.py
Fixed bug and clean code in service.py

miurahr/seahub,madflow/seahub,Chilledheart/seahub,miurahr/seahub,cloudcopy/seahub,Chilledheart/seahub,madflow/seahub,cloudcopy/seahub,Chilledheart/seahub,madflow/seahub,Chilledheart/seahub,madflow/seahub,madflow/seahub,cloudcopy/seahub,miurahr/seahub,Chilledheart/seahub,cloudcopy/seahub,miurahr/seahub