Thanks for the reply.
I have seen Qtile before, but I'm not looking for an entire window manager. Just an API or tool that can be used to get information about windows and set their positions.
For example, right now I use a combination of
QuickTile and scripts around wmctrl, xwininfo, and xdotool to manipulate windows to my liking via key bindings. However this solution is awfully clunky as QuickTile doesn't do everything I want and wmctrl, xwininfo, and xdotool all report or manipulate geometries slightly differently etc. I was hoping there was some clean C or Python API into X where I could implement all my tiling needs in one place.
It looks like
libwnck may be what I want.