Make bar.py python3 compatible.