bug fix for Python3.0