Small refactor of Python Bob.