Improving performance of Python code using rewriting rules technique - K. A. Zhereb (Problems in programming, 2020)