items = json.loads(z_api.call('/v3/statistic/ab/'))
f = open("blacklist.txt", "r+")
data = f.readlines()
for elem in items['stats']:
if elem["sip"] not in data:
f.write(elem["sip"] + '\n')
elif elem["sip"] in data:
pass
f.close()