What is this ?

The first pic, that is the resistor for the electric assist choke for the carb. The next two pics, it appears someone "piggy backed" a 4 pin resistor in with the two pin. Apparently it has been converted to electronic ignition? If so, it definitely shouldn't have been done that way.