Cleaned up blender bindings.

Rewrote the functions in Python.