def service_type(stype):
 def inner(f):
  f.service_type = stype
  return f
 return inner

def service_type ( stype ) : def inner ( f ) : f . service_type = stype return f return inner
adds service_type attribute to decorated function .