Question: iv must be 8 bytes long?
Answer: Parameters: key (byte string) - The secret key to use in the symmetric cipher. ... For MODE_OPENPGP, IV must be 8 bytes long for encryption and 10 bytes for decryption (in the latter case, it is actually the encrypted IV which was prefixed to the ciphertext). For all other modes, it must be 8 bytes long.