Handling paramiko exception, fixed pyflakes error