Make Client.log testable
PEP8