import stack1 if not stack1.empty(): # qualify by module name x = stack1.pop() stack1.push(1.23) # both clients share same stack