'getbool understands the special "true"/"false" value in Hadoop'

def getbool(self, key, default=None):

    val = self.get(key, None)
    if (val is None):
        return default
    return (str(val) == 'true')
