Clarification on the reason of failed excesrise

Please read this thread to understand why that is. You need “copy” or “deepcopy” to break the connection to the global variables.