Strictly speaking the capital letters are not pep8 compliant, but I don't think double underscore matter in this case, because they don't surround the name (__init__ etc). I do agree with you that it is a bit confusing and I would rather remove them, but this is really nitpicking :)