Partial rework of bootstrap script in python.