Your while loop is blocking the main update loop, so the tracker will never update. You should never use
time.sleep in the main thread. Instead, register a function to be called every 0.25 seconds and print the tracker values within that function:
Code:
import vizact
def PrintValues():
print glasses.getPosition()
print glasses.getQuat()
vizact.ontimer(0.25,PrintValues)