Usage of sys.stdout.flush() method

What does sys.stdout.flush() do?