python3 compatibility

This series of patches makes osc python3 compatible. In order to maintain backward compatibility, code run fine on 2.6, 2.7 and 3.3 without any change. The  python2.6 suite.py, python2.7 suite.py and python3.3 suite.py worked well.