fix global var ref

new to python