I have biuld a function in python that replicates a circuit of other three functions (defined in the main function) that call eachother while iterating over a given list of