Remove various unused bits
Silence pyflake
Run pyflakes on make check
Merge pull request #18 from dnarvaez/pyflakes

Make the code pyflakes clean
Palettes: remove comment about deprecated API

We make use of this API in the shell and in the toolkit itself
and never removed those deprecated calls. Let's leave it like
this for now and remove the comment.