Python solution to the Crypto001 Week 4 programming homework from Coursera.