Electroactive films of polypyrroles containing complexing cavities preformed by entwining ligands on metallic centers