Maybe it would be worth considering moving part of the explorer to a different runtime like handling the backend in Python and letting the frontend pull JSON from a cache instead.
Do you suggest OP to modify source code of BTC-RPC explorer? In addition, this explorer doesn't even use Python programming language.