with smart_open.smart_open(file_to_write, 'wb') as s3_file_write:
pipe_to_stream = utils.write_stream(s3_file_write)
gpg.on_data = pipe_to_stream
with smart_open.smart_open(file_to_open, 'rb') as s3_file_read:
gpg.decrypt_file(s3_file_read, passphrase=passphrase)