def create_ssh_wrapper():
 ssh_wrapper = ssh_file(SSH_WRAPPER)
 with open(ssh_wrapper, u'w') as handle:
  handle.write(SSH_WRAPPER_TEMPLATE.format(known_hosts=ssh_file(KNOWN_HOSTS), identity=ssh_file(RSA_KEY)))
 os.chmod(ssh_wrapper, 493)

def create_ssh_wrapper ( ) : ssh_wrapper = ssh_file ( SSH_WRAPPER ) with open ( ssh_wrapper , u'w' ) as handle : handle . write ( SSH_WRAPPER_TEMPLATE . format ( known_hosts = ssh_file ( KNOWN_HOSTS ) , identity = ssh_file ( RSA_KEY ) ) ) os . chmod ( ssh_wrapper , 493 )
creates wrapper for ssh to pass custom known hosts and key .