altered bool definition
py3k fix
minor
caching