[compat] Simplify kwarg detection code

This enables nuitka to compile youtube-dl.