Re: clean compost?
Compost needs a balanced diet of carbon and nitrogen materials. If your compost smells it probably has too much nitrogen/"green stuff"- kitchen scraps, fresh grass etc. Cover with a layer of carbon materials, i.e. "brown stuff"- leaves, dry grass, straw, sawdust etc. Keep a stash near your pile and add a layer whenever you dump your nitrogen (kitchen scraps)
I suspect that since compost creates heat it may attract cold blooded snakes looking to warm up. An option may be to do a vermiculture- worm composting bin. The book "Worms eat my garbage" is fantastic. You could have this box in your basement, garage, or even as a bench in your kitchen! And if you garden, the worm castings are gold.