Make `write_ssh_wrapper` work for Python 2.4

The `delete` parameter wasn't added until Python 2.6, and Ansible has a requirement of Python 2.4 for managed nodes (for #5822)