Python Module Level Variable Resistor Function In A Circuit