don't rely on string interning for comparison. and some pep8.