Replace install-links shell script with a more sophisticated Python one which also properly handles pypy.