Fixed class decorator usage for py25 compatibility