add total_seconds polyfill for python2.6
re-fix log_repr import