Be more pythonic.

I updated the script to be a bit more pythonic.

Now, since i do not have a dayviews account I can't test my changes, but they *should work*. Either way, see them as a guideline (and please test before you merge, if you merge). :)