small refactor of coloring in Python
Merge branch 'master' of github.com:bailey-lab/bib-cpp