Added python bindings for Thrift and example code

I've added the python bindings and some example code.