Effective lagrangian for 3d Script N = 4 SYM theories for any gauge group and monopole moduli spaces