Python 3 compatible bootstrap.py
Partial python3 support