def connect_to_network(name):
    process = subprocess.Popen('netsh wlan connect {0}'.format(name), shell
        =True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
return 'Connection request was completed successfully' in stdout
Связывание моего компьютера с Windows с точкой доступа Wi-Fi с помощью Python