結果 : how to write an api wrapper in python