Update broadcast.py

fixing bug