Fix the previous bool issue for both Python 2 and 3