Implemented stopwatch using Python