Remove shell scripts from setup.py
and rewrite them in Python, with error checking (instead of failing silently)