Python Line Profiling Best Practices