#!/usr/bin/env python
import i3ipc
import sys
count = 0
test = []

i3 = i3ipc.Connection()

for leaf in i3.get_tree().scratchpad().leaves():
	yolo = leaf.window_class	
	test.append(yolo)
	count+=1
if (count !=0 ):
#	print("Scratchpad:",count,"(",*test,")")
	print("Scratchpad:",count,'(%s)' % ', '.join(map(str,test)))
else:
	print("Scratchpad:",count)

5ea6ced6b69e2da15acc9a31f8b426d0b4bf7d65
<mask token>

<mask token>
for leaf in i3.get_tree().scratchpad().leaves():
    yolo = leaf.window_class
    test.append(yolo)
    count += 1
if count != 0:
    print('Scratchpad:', count, '(%s)' % ', '.join(map(str, test)))
else:
    print('Scratchpad:', count)

<mask token>
count = 0
test = []
i3 = i3ipc.Connection()
for leaf in i3.get_tree().scratchpad().leaves():
    yolo = leaf.window_class
    test.append(yolo)
    count += 1
if count != 0:
    print('Scratchpad:', count, '(%s)' % ', '.join(map(str, test)))
else:
    print('Scratchpad:', count)

import i3ipc
import sys
count = 0
test = []
i3 = i3ipc.Connection()
for leaf in i3.get_tree().scratchpad().leaves():
    yolo = leaf.window_class
    test.append(yolo)
    count += 1
if count != 0:
    print('Scratchpad:', count, '(%s)' % ', '.join(map(str, test)))
else:
    print('Scratchpad:', count)

#!/usr/bin/env python
import i3ipc
import sys
count = 0
test = []

i3 = i3ipc.Connection()

for leaf in i3.get_tree().scratchpad().leaves():
	yolo = leaf.window_class	
	test.append(yolo)
	count+=1
if (count !=0 ):
#	print("Scratchpad:",count,"(",*test,")")
	print("Scratchpad:",count,'(%s)' % ', '.join(map(str,test)))
else:
	print("Scratchpad:",count)
