Performance tuning your Python scripts can be done using several tools: timeit Python regular expressions String handling Loop optimizations hotshot profiling