def get_tempurl_keys_from_metadata(meta):
 return [get_valid_utf8_str(value) for (key, value) in meta.items() if (key.lower() in ('temp-url-key', 'temp-url-key-2'))]

def get_tempurl_keys_from_metadata ( meta ) : return [ get_valid_utf8_str ( value ) for ( key , value ) in meta . items ( ) if ( key . lower ( ) in ( 'temp-url-key' , 'temp-url-key-2' ) ) ]
extracts the tempurl keys from metadata .