Python 再帰の上限の参照と変更 ref: http://qiita.com/kics/items/7849c33bc1fc4e032100