Revert "Fix install-links to get the links generated for pypy too."

This reverts commit af4e7efd56b2d4c091f4fcfb2eb474e27939a8de.
Replace install-links shell script with a more sophisticated Python one which also properly handles pypy.
fix missing import in install-links.in