スクリプトをpython 2, 3 の両方で動くようにする Make script working both for python 2 & 3