This is a nitpick, but datetime.today().strftime("%Y-%m-%d") is probably easier to understand than string slicing.