A very simple crypto exercise in python