modify for Python 2

This adds support for Python 2.7 using the six module.

EDAMTest.py ran successfully with both Python 2.7.6 and Python 3.3