I get warnings while using check_output function and I am unable to redirect the warnings. I suppose stderr will only take errors and subprocess.check_output cannot deal with warnings (not sure though). Can anyone suggest? I get warnings while using check_output functio