python principals Tic tac toe input - is a one liner possible