ppf/new: Add newly designed top-level functions in top.py.