First python code with globals changes by arguments working