minor modifications of structure.py

1. wrapping lines with more than 80 characters
2. more explicit variable name, BP -> branch_point
notification test