migrate bootstrap script from Shell to Python