Make trinary exercise compatible with Python3
Merge pull request #62 from sjakobi/py3k-trinary

Make trinary exercise compatible with Python3