Updated python nchain interface