Update Scripts

Adds python version
Speed up all the ways of doing this.

Should be noted that the Ruby version (which requires the Nokogiri gem) is slightly faster. The python version depends on the system implementation of cElementTree