I need to find out whether a name starts with any of a list\'s prefixes and then remove it, like:
if name[:2] in [\"i_\", \"c_\", \"m_\", \"l_\", \"d_\", \"t
A bit hard to read, but this works:
name=name[len(filter(name.startswith,prefixes+[''])[0]):]