Change L1, L2 coeffs to dictionary instead of a list