Extend python interface.