corrected minor flaws detected py pylint; added diagnose code to execute on travis ci node