Python example code for the minimax algorithm with and without alpha-beta pruning