Drop Python 3.10 support, require Python 3.11+ (#4180)