I would say that it's a python convention. That said, pep8 doesn't have anything to say about that particular case, so it comes down to a matter of style, I think.