Refactor: python: Improve handling the setup method.
- Rename it to _setup, since nothing outside the class calls it.
- Make sure everything that was being defined in it is actually defined in the init method instead, and give them all private names.
- Return True/False instead of 1/0.