Fix compatability issue with python 2.6.
Add initial edge_test code.