Attempts to avoid malloc error caused by python/C++ mixup when cleaning objects
Weighted atoms in embedding so matrix is adhered to.