def totalseconds_float(timedelta):
    """Return the total number of seconds represented by a datetime.timedelta object, including fractions of seconds"""
    return (timedelta.seconds + timedelta.days * 24 * 60 * 60 + timedelta.
        microseconds / 1000000.0)
