Add NullHandler compatibility for tests in python 2.6
Manage timedelta.total_seconds in python 2.6 by adding a method in utils