fix circular import api reference

(and remove a random print statement)