[PEP8]ify catlib.py

Change-Id: I9bf397a5dd89d333a68741c1c6f23c26e502f29e