Why is this in-place operation not modifying the Python object in-place? - Modular