format qdot.py to fit pep8

I format qdot.py and add  warning message when the system doesn't have Graphviz.