Add Python 2.6 compliancy: remove dict/set comprehensions, OrderedDict, {}.format() syntax, timedelta.total_seconds(), etc.