Fix tests to work on Python 3: remove dependency on envoy, general simplifications
Use tests/tmp instead of /tmp, to make things work on non-unix
Updated loop tests
Cleanup the main function
Merge pull request #23 from heatherleaf/fixtests

Several fixed in runtests.py
Merge pull request #24 from heatherleaf/fixmain

Cleanup the main function