[python] What's the pythonic way to use getters and setters?