def GetPDBAtomNames(mol):

    """Extracts PDB atoms names"""

    names = {}

    for i, atom in enumerate(mol.GetAtoms()):
        name = atom.GetPDBResidueInfo().GetName()
        names[name.strip()] = i

    return names