Improve bob.py

 -- replace stmt.upper() == stmt with stmt.isupper()