diff --git a/python_jsonschema_objects/classbuilder.py b/python_jsonschema_objects/classbuilder.py
index 740f2a6..c01fdcc 100644
--- a/python_jsonschema_objects/classbuilder.py
+++ b/python_jsonschema_objects/classbuilder.py
@@ -355,6 +355,9 @@ class LiteralValue(object):
           str(self._value)
       )
 
+  def __str__(self):
+      return str(self._value)
+
   def validate(self):
       info = self.propinfo('__literal__')
 
@@ -364,16 +367,14 @@ class LiteralValue(object):
           if validator is not None:
               validator(paramval, self._value, info)
 
+  def __eq__(self, other):
+      return self._value == other
+
+  def __hash__(self):
+      return hash(self._value)
 
-  def __cmp__(self, other):
-    if isinstance(other, six.integer_types):
-      return cmp(int(self), other)
-    elif isinstance(other, six.string_types):
-      return cmp(str(self), other)
-    elif isinstance(other, float):
-      return cmp(float(self), other)
-    else:
-      return cmp(id(self), id(other))
+  def __lt__(self, other):
+      return self._value < other
 
   def __int__(self):
     return int(self._value)
diff --git a/tox.ini b/tox.ini
index ae66538..be7e5cb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 
 [tox]
-envlist = py27, py34
+envlist = py27, py35
 
 [testenv]
 ;install_command = pip install {opts} {packages}

Creation of array anonymous objects fails
It seems [classbuilder.py:485](https://github.com/cwacek/python-jsonschema-objects/tree/2a6f5af53e69a99a01d867285dd2f138a26549bd/python_jsonschema_objects/classbuilder.py#L485) is passing the whole array `detail['items']` to `construct` when it should be passing `elem` from the enumeration. 
diff --git a/test/test_regression_8.py b/test/test_regression_8.py
new file mode 100644
index 0000000..42147c3
--- /dev/null
+++ b/test/test_regression_8.py
@@ -0,0 +1,51 @@
+import pytest
+
+import python_jsonschema_objects as pjo
+
+
+@pytest.fixture
+def test_instance():
+    schema =  {
+        'title': 'Example',
+        'properties': {
+            'stringProp': {'type': 'string'},
+            'arrayProp': {
+                'type': 'array',
+                'items': {
+                    'type': 'string',
+                }
+            }
+        }
+    }
+
+    builder = pjo.ObjectBuilder(schema)
+    ns = builder.build_classes()
+    instance = ns.Example(
+        stringProp='This seems fine',
+        arrayProp=['these', 'are', 'problematic']
+    )
+    return instance
+
+
+def test_string_properties_compare_to_strings(test_instance):
+    test = test_instance.stringProp == "This seems fine"
+    assert test
+
+
+def test_arrays_of_strings_compare_to_strings(test_instance):
+    test = test_instance.arrayProp == ['these', 'are', 'problematic']
+    assert test
+
+
+def test_array_elements_compare_to_types(test_instance):
+    elem = test_instance.arrayProp[0]
+    test = elem == 'these'
+    assert test
+
+def test_repr_shows_property_values(test_instance):
+    expected = "<example/arrayProp_<anonymous_field> these>"
+    assert repr(test_instance.arrayProp[0]) == expected
+
+def test_str_shows_just_strings(test_instance):
+    test = str(test_instance.arrayProp[0])
+    assert test == 'these'

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.5
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
execnet==1.9.0
importlib-metadata==4.8.3
inflection==0.2.0
iniconfig==1.1.1
jsonschema==2.3.0
Markdown==2.4
packaging==21.3
pandocfilters==1.2
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-mock==3.6.1
pytest-xdist==3.0.2
-e git+https://github.com/cwacek/python-jsonschema-objects.git@35cdc2e1e6e1e3978fe2474243f67e4142c93c3d#egg=python_jsonschema_objects
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: python-jsonschema-objects
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - execnet==1.9.0
      - importlib-metadata==4.8.3
      - inflection==0.2.0
      - iniconfig==1.1.1
      - jsonschema==2.3.0
      - markdown==2.4
      - packaging==21.3
      - pandocfilters==1.2
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-asyncio==0.16.0
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytest-xdist==3.0.2
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/python-jsonschema-objects

test/test_regression_8.py::test_arrays_of_strings_compare_to_strings test/test_regression_8.py::test_array_elements_compare_to_types
test/test_regression_8.py::test_string_properties_compare_to_strings test/test_regression_8.py::test_repr_shows_property_values test/test_regression_8.py::test_str_shows_just_strings
tox.ini python_jsonschema_objects/classbuilder.py
tox.ini python_jsonschema_objects/classbuilder.py