Edited beacon.py to reflect the code better