Python bindings

First pass at hooking up the python bindings.