Python performance bottleneck

· Dev.to