fix syntax errors in bootstrap.py