preliminary py3k compatibility
completed py3k compatibility upgrade
python 2.6 fix
Merge pull request #9 from alexchandel/master

add Py3k compatibility, while preserving python 2.6+ compatibility