Added python wrapper.
Improved python wrappers.