To confuse variable Foo.__privatebar with Foo._Foo__privatebar would be a hard thing to do. As you can see, Python uses name mangling to protect a private variable.
vegaseat commented: very good example +10
Gribouillis commented: Useful test. Thanks also for linux users :) +2