new-style classes
few bugfixes
refactor format_timedelta