remove debug statement and fix pylint warnings