def _generate_random_string(length=6):
 return ''.join(random.sample(string.ascii_lowercase, length))

def _generate_random_string ( length = 6 ) : return '' . join ( random . sample ( string . ascii_lowercase , length ) )
return a random string of the defined length .