Evaluates an option
        :param option: a string
        :return: an object of type str, bool, int, float or list

def eval_option_value(self, option):
        """ Evaluates an option
        :param option: a string
        :return: an object of type str, bool, int, float or list
        """
        try:
            value = eval(option, {}, {})
        except (SyntaxError, NameError, TypeError):
            return option
        if type(value) in (str, bool, int, float):
            return value
        elif type(value) in (list, tuple):
            for v in value:
                if type(v) not in (str, bool, int, float):
                    self._write_error("Value of element of list object has wrong type %s" % v)
            return value
        return option