Port the rest of the file to the 2.4/3 compatible syntax (#15873)
Port the rest of the file to the 2.4/3 compatible syntax (#15873)

Since the modules can use a paramiko transport (ergo
python 2.4 syntax), we need to keep compat with 2.4 and python 3,
so we need to use the get_exception trick, even if the various juniper
libraries are not compatible with 2.4.
thaim/ansible,thaim/ansible