python endpoint version of tic-tac-toe android project ... tested on nexus4 hardware