Trait support for classes for Python 2.7