They do work for many people, but it always depends on the betta.
Also you should add more than 3 pygmy's, they will be a lot more happier in bigger groups. I think about 6 or 7 should be fine in 10 gallons with the betta.
But you should cycle the tank first.