Fixed Python 3 check