2to3 should have caught this.
import random
import string
-def string_generator(size=6, chars=string.letters + string.digits):
+def string_generator(size=6, chars=string.ascii_letters + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def number_generator(size=4, chars=string.digits):
