This code was working before today.
I am using this line to encrypt a file and save it:
gpg.encrypt_file(f,recipients=encrypt_key,output= encrypted_file) <