def __init__(self, windowID):
    self._display = Display()
self._window = self._display.create_resource_object('window', windowID)

def reserve_space(self, left=0, right=0, top=0, bottom=0):
    LEFT = left
RIGHT = right
TOP = top
BOTTOM = bottom
self._window.change_property(self._display.intern_atom('_NET_WM_STRUT'),
    self._display.intern_atom('CARDINAL'), 32, [LEFT, RIGHT, TOP, BOTTOM])
self._display.sync()
Python: tell X to reserve screen space for application