Let's say you have the following program:
print 'hello world'
chmod +x ./example.py
If you run this program from a terminal, it will print hello world every second.
But redirect the output to a file and something different happens:
./example.py > output &
tail -f output
You won't see any output! (At least not for a long while)