import ipaddress
from mywinbox import connect
from threading import Thread
import time
#oskolnet='37.110.224.0/20'

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

treads_list=[]
for i in range(76,80):
    ti='t'+str(i)
    print (ti)
    ti = Thread (target=scan,args=('91.197.{}.0/24'.format(i),))
    treads_list.append(ti)

for ti in treads_list:
    ti.start()

for ti in treads_list:
    ti.join()
