1 import string,random
2
3 def get_key():
4 """ return a 10 character random key.
5 """
6
7 return ''.join([ random.choice(string.uppercase+string.digits) for i in range(10)])
8