Python 3 print support
Converted python2 DictType to python3-compatible isinstance
Python 3 list.keys() and list.sort() support (backward-compatible)
Merge pull request #330 from gugu/master

Python 3 support