Please write something like response += 'Game {0}, Active player {1}, .. etc'.format(i, active_player(j), ...) to avoid all these string start/ends.