(#5822) Use `mkstemp` to open a temporary file (as NamedTemporaryFile doesn't take a `delete` argument in Python < 2.6)
Merge pull request #5835 from mrbanzai/ssh_wrapper_py24

Make `write_ssh_wrapper` work for Python 2.4