a python code about service compositon algorithem