Pyflakes, pylint and reuse common panic from misc.