fix issues introduced by pull request #22 because of PEP 3113 and PEP 328
fixed issue with dddd, ddd, and dd format modifiers not being parsed