Fix ssh sudo hang

Use Python 3.2 backport of subprocess to prevent ssh processes from hanging indefinitely. See #9544.