x = 0 def getx(): global x return x def setx(newx): global x x = newx