Also a trivial style remark: even thought it is valid Python, we prefer when 'if ... :' is followed by a line return and a one-line block.