Python Create A Global Variable In A Function Each X Value