Make cdp python3 complaint