Minor / misc python discussion

Using this thread for discussing / reviewing minor changes in various python scripts.

Added some sanity tests to sdwdate’s /usr/lib/sdwdate/date_to_unixtime:

Because running just running

/usr/lib/sdwdate/date_to_unixtime

or

/usr/lib/sdwdate/date_to_unixtime ""

resulted in invalid results. Now fixed.

Please review.

Installed from github and tested OK.
Updated sdwdate AppArmor profile.