Python Function Name As Variable Resistor