Updates to pinning table xml and python script.