Remove useless imports
Correct stderr redirect