Renewal and Optimization of ScamPy: a Python API for painting galaxies on top of dark matter simulations