PYTHON: time performance