changing location of log message

- so that the wait helper sends the message
PEP8 formatting