Python programs for Coursera Cryptography 1