Remove unnecessary stdout.flush().

There's no apparent need for the flush() call and it makes trytond crash when
stdout has been redirected.

issue3286
review974002