I use a double indent so they are seen as still part of the if statement. Also put the expressions in parentheses:
if (squares[row][0] != 0
and squares[row][1] == squares[row][0]
and squares[row][2] == squares[row][0]):
draw_line(row, 0, row, 2, colour)
return