I am doing a code, in which there is a lot of def functions, but i am having trouble to deal with it because seems the python do not remember the variables i defined before