Add __bool__ for python 3

Python 3 checks __bool__ instead of __nonzero__ when testing the "truthiness" of an object. This was causing some code to use __len__ instead of __nonzero__, and it was returning 0, which was causing an instance of DummyResource to be "falsy" instead.