Evernote's 2nd programming challenge done in Python