import ipaddress
from mywinbox import connect
from threading import Thread

#oskolnet='37.110.224.0/20'

def scan(oskolnet):
  for i in ipaddress.ip_network(oskolnet):
         print  (connect(str(i)))



t1 = Thread (target=scan,args=('91.214.117.0/24',))
t2 = Thread (target=scan,args=('213.108.6.0/24',))
t1.start()
t2.start()
t1.join()
t2.join()
