def randstring(length=0):
    if (length == 0):
        length = random.randint(1, 30)
    return ''.join((random.choice(string.lowercase) for i in range(length)))
def randstring(length=0):
    if (length == 0):
        length = random.randint(1, 30)
    return .join((random.choice(string.lowercase) for i in range(length)))