Assuming that the namespace is always alphanumeric, you could first
>>> import re
>>> ns_attr_split = lambda s: re.split("[^a-zA-Z.]", s,
Obviously this isn't exactly what you want… but the fiddling
would be straight forward.