py3k support
Merge pull request #2 from alex/patch-2

py3k support