Don't capture sys.stderr at import time

Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
Convert print statements to python3-style print function

Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>