Instead of writing python, the method I use (and probably other developers do the same) is to call the program with the correct parameters (python -m youtube_dl URL OTHER_ARGS) and if necessary I put someprint(...)call in the extractors to debug them. About the problem with all the ...