Exec input filter in logstash not capturing entire output from python script

Can you try to produce a minimal example that exhibits the problem? What if you have a one-line Python script like

print 'hello'

does that get captured?