fix color.py for windows

not tested under python3 (windows and linux)