With metal pipes, I take a piece of stiff wire, or a paper clip, heat it up with a lighter, and then push it through the clogs in the pipe. It also softens the gunk up so that you can use a regular pipe-cleaner to get out the rest of it.

Pipe stores used to clean meershaum and other "tobacco" pipes that are also good for weed.