a python code about service compositon