Update bot_lib.py

Fixed pep8 issues.