skip over comment nodes, they do not have a tag attribute that can have .split called on it
when deleting a subkey (called by piperename) that has a numeric index to delete, convert it to an integer since the indexing will be on a list, not a dict