python dictionary passed as an input to a function acts like a global in that function rather than a local python dictionary passed as an input to a function acts like a global in that function rather than a local python python