from cryptography.fernet import Fernet

def plain_text(file_key, file_cipher_text):
    """Return plain_text with provided paths of key and cipher_text files"""
    with open(file_key, 'r') as f:
        key = f.readline()
    with open(file_cipher_text, 'r') as f:
        cipher_text = f.readline()

    cipher_suite = Fernet(key)
    return cipher_suite.decrypt(cipher_text)

# Test with key file and cipher_text file
file_key = 'key'
file_cipher_text = 'cipher_text'
print plain_text(file_key, file_cipher_text)
print '-' * 10

6951b193c30fb37571d20b0bfa8bd0e47690efe9
from cryptography.fernet import Fernet

def plain_text(file_key, file_cipher_text):
    """Return plain_text with provided paths of key and cipher_text files"""
    with open(file_key, 'r') as f:
        key = f.readline()
    with open(file_cipher_text, 'r') as f:
        cipher_text = f.readline()

    cipher_suite = Fernet(key)
    return cipher_suite.decrypt(cipher_text)

# Test with key file and cipher_text file
file_key = 'key'
file_cipher_text = 'cipher_text'
print plain_text(file_key, file_cipher_text)
print '-' * 10
