Remove C-like brackets around if clauses and tidy up class docstring positions.