Simplifying and setting for older versions of Python

Original code uses total_seconds() function which was introduced into Python in 2.7 whereas XBMC ships with 2.6.6 as of now. This function is more simple and will work with out of the box XBMC.