Update scraper.py

Fix #191 The total_seconds function now is backward compatible