if value is an instance of six.string_types and value converted to lowercase is not equal to strings 'false' or '0',
if isinstance ( value , six . string_types ) and value . lower ( ) in ( 'false' , '0' ) :