some fixes and simplifications

Hi,

thanks again.

I went in and simplified the python code a bit, and I also fixed a problem with multiple args not working right.

I dropped the requirement on python-dateutil, too, as it didn't add a whole lot of value to the code.

Odd question to ask after patching, are you OK with licensing this code under MPL2?