def read_crypto_key(key_path, key_type=None):
 from keyczar.keys import AesKey
 key_type = (key_type or AesKey)
 with open(key_path) as key_file:
  key = key_type.Read(key_file.read())
  return key

def read_crypto_key ( key_path , key_type = None ) : from keyczar . keys import AesKey key_type = ( key_type or AesKey ) with open ( key_path ) as key_file : key = key_type . Read ( key_file . read ( ) ) return key
return the crypto key given a path to key file and the key type .