Fix for the find_unused_imports.py script.
The STDOUT lines need to be read before STDERR to avoid the script from freezing.
Authored by: bugman 2015-10-02
Parent: [r27971]
Child: [r27973]