This indenting looks rubbish... is this the PEP way?