remove pragma for python3. make color testable
improve test cases for color