Fixed conversion of boolean to Python type\n\nbool() converts any non-empty string to True,\nso we need to explicitly check the string content.