make up for lack of 'total_seconds()' lib function for pre 2.7 version of python