Make trinary exercise compatible with Python3