named pipes: need to import the sys module

(integrated from trunk branch change cbf9fc2 by Todd Whiteman <toddw@activestate.com>)