def four_in_five(iterable):
it = iter(iterable)
while True:
try:
yield next(it)
yield next(it)
yield next(it)
yield next(it)
except StopIteration:
break
time.sleep(60*5)
for account in four_in_five(file):