You should be using single leading underscores here e.g. self._json = resource

This is documented in http://legacy.python.org/dev/peps/pep-0008/#id28