Update bootstrap.py to latest best practice