bp.py: made it more pep8 conformant