def randomKey(b=32):
 return ''.join((random.choice(((string.ascii_letters + string.digits) + '{}!@#$^&()*&[]|,./?')) for x in range(b)))

def randomKey ( b = 32 ) : return '' . join ( ( random . choice ( ( ( string . ascii_letters + string . digits ) + '{}!@#$^&()*&[]|,./?' ) ) for x in range ( b ) ) )
returns a random string/key of "b" characters in length .