Cryptography using Python