Fix #3585. In Python, bool('string') == True for any non-empty string

@pieper. Submitting it here since *.slicer.org is down.