adjusted python API xbuild and removed leftover debug message