Update binary.py

Updated reflects appropriate length conditional requirement.