Fixed a few syntax errors from commit: 6915294ebb1

"bool log = true" should've been "log = True"
"if log == true:" should've been "if log == True:"
This is why we test before we push! :)