Use python interface if avaiable.