結果 : how to write a python api wrapper