Python How Do Global Variables Work