modified the library, tests and applications to support both Python3 and Python2
fixed a few bugs preventing Python3 migration
included Søren Roug's modifications
Merge pull request #10 from georgesk/master

Changes to make it work with Python 3