Update bootstrap.py, fix crash upon first login