pygtk based app that calculates resistance value from resistor strips colors and vice-versa