Code from Zed Shaw's "Learn Python the Hard Way"