Python Module Level Variable Resistor Function In Circuit