My ball python had the same problem with shedding yesterday. I got the shed on his tail off with a moist paper towel
Also I use aspen bedding since some substrates are made with chemicals that can kill your snake. If you are worried about the snake ingesting the substrate, you can do like I do and feed them in a tub and put them back into their enclosure afterwards.