#NEWLINE# def decrypt_metadata( self , image_metadata ) : #NEWLINE# #INDENT# if ( ( self . metadata_encryption_key is not None ) and ( 'location' in image_metadata . keys ( ) ) and ( image_metadata [ 'location' ] is not None ) ) : #NEWLINE# #INDENT# location = crypt . urlsafe_decrypt ( self . metadata_encryption_key , image_metadata [ 'location' ] ) #NEWLINE# image_metadata [ 'location' ] = location #NEWLINE# #UNINDENT# return image_metadata