Fixed a bug due to Python 2 doesn't support float multiplication of timedeltas.