CLN: Make toplevel import explicit in stats/api.py