Fix Python3 compatible issue occurs in script.py.