Well, slugs are unfertilized eggs. They only way she could lay a fertile egg without being with a male is via parthenogenesis, using two copies of her own genes. That's fairly rare in ball pythons.

But lots of females grow follicles during breeding season, with or without a male present. Sometimes they reabsorb them, sometimes they ovulate and lay the unfertilized slugs.