is global ok to use? does it work in python 3