Fixed errors in Warlock.py so that the project passes pyflakes validation.