small changes to Python encryption samples