Fix comp_map.py for Python 3.x (Closes #26)