Remove unused compat types from compat.py

[ci skip]