Fix get_attribute for the python implementation when a boolean value is
returned.  This fixes issue #5955.

Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>