import random
import string


def rand_str(n=8):
    """Return a random string of length n"""
    return ''.join(random.SystemRandom().choice(string.letters)
                   for _ in range(n))

def rand_email():
    return 'test.email.{}@userkit.co'.format(rand_str())

@@ -146,15 +146,23 @@
 ing.
-letters
+ascii_lowercase
 )%0A  
@@ -198,16 +198,17 @@
 ge(n))%0A%0A
+%0A
 def rand

Fix Python3 bug in tests/util.py