Creating a string of random characters
The answer to this question suggests the following:

''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))


It's close to your solution, but avoids having to type out the whole alphabet by using predefined values and avoids the use of map() and lambda.