Use True and False Boolean constants, rather than 1 and 0

* True and False introduced in Python 2.3
* bool() introduced in Python 2.2.1
* Simplify Boolean variable checks
* TK code still uses 1 and 0 literals