International Phonteic Alphabet

Dear Lazyweb,

Is there a decent library (preferably Python) that can manipulate strings that are encoded in Unicode for IPA? This would mean a library that can intelligently recognize when [ʈʰ], [ɭʷ], and [d̪ʰ] are one character each, even though the are formed out of multiple components. I don't really feel like cross referencing all these words tonight and i know a computer could do my homework much faster.

Bonus points if anyone can tell me which language those three phonemes occur. :)