Refactor: python, cts: Support membership protocol in CtsLab.
This is just like in Environment, but for the CtsLab class instead. I'm
not actually sure that anything was using has_key on this class, but if
it wants to look like a dict we should at least add the methods that
make it act like one.