Remove Python-generated binary search and use match for color keywords

`match` is slightly slower in the worst case, but removing the build system complexity of a Python-generated Rust file is worth it.