Several cosmetic fixes

* remove unused _conn_watchers

* pep8 and pyflakes coding style

* add run_test.sh for easy code testing and format checking