removing some dead code
fixing up debug module so pylint is happy