Modified timeline.py after following pyflakes,pylint,pep8