makeboolean: make map compatible with python 3.x