Add licence to bnb.py