Update binary.py

Problem found in http://programmingpraxis.com/