This commit fixes type error in Python3