setup.py: subprocess instead of os.popen, sys.stderr.write instead of print
Also check that .hg is a directory.
*** failed to import extension badext from .../badext.py: bit bucket overflow*** failed to import extension badext2: No module named badext2hg help [TOPIC]show help for a given topic or a help overview