Python Global Variable Best Practice