Python Module Level Variable Resistor Function And Uses