[cloud][py3] Use to_bytes in ec2_key module in two more places (#26936)
[cloud][py3] Use to_bytes in ec2_key module in two more places (#26936)

PR #23051 fixes the first failure of this, but it doesn't fix the successive calls.
thaim/ansible,thaim/ansible