doesn't raise TypeError, actually
Restore os.wait / os.read order

so that output of subprocess may be captured when exit code is non-zero !
TypeError *or* DeprecationWarning

Depending on python release. 2.6 is DeprecationWarning, later is TypeError.