I would bet that this this could be done without knowing the current bounds. Isn't the zoom level absolute so given the current zoom level, center and width/height you could compute the current bounds in Python? That would make all of this work pre-display.