Python Create Object With Variable Resistor