def str_to_bool(string, truelist=None):
    """Returns a boolean according to a string. True if the string
    belongs to 'truelist', false otherwise.
    By default, truelist has "True" only.
    """
    if truelist is None:
        truelist = ["True"]
    return string in truelist