For non-smooth-finished pipes you will find that a discarded tooth brush (wetted with lemon juice, alcohol, coffee, spittle, or any other of the solvents mentioned above) does wonders for getting the gunk out of their cracks and crevices. One is also beneficial for working wax into them, and for subsequent polishing.