Python scope not working, no error also

If it helps: