I got it working if you do this:
def testClosure():
count = 0
def increment():
nonlocal count
count += 1
for i in range(10):
increment()
print(count)
testClosure()
Note this will only work in Python 3.x, but you are clearly using that so it isn't a problem.