結果 : how to write a library in python