jython implementation of ticTac