Pythonで関数合成と適用的な ref: http://qiita.com/hatchinee/items/ab208f0ce596964c1a31