@staticmethod
def _to_list(data):
    """Converts certain data types (str, unicode) into list.

        Args:
          data: data to convert

        Returns:
          list with converted data
        """
    types = [str]
    for data_type in types:
        if isinstance(data, data_type):
            return [data]
    return data
