fix month/year handling to be able to create "old" timecheats

Also some pep8 stuff.