now python 3 compliant. Passes unit tests for both python 2 and python 3.
closes #15