modernize bootstrap.py