lazycat: split color defining to standalone lib

And some fixes by advice of PEP.