Some minor changes for Python 3 compatibility
Test script moved to the root directory
Tests rewritten with pytest instead of nose (running in Python 2.x)
Merge branch 'python3' into little_fixes_for_python3
fix iteritems does not exists in python3