unused module stat
pylint issues
pylint issues and even two bugfixes
fix pylint issues