compat.py is not public API either.