added support to Python 2.6/3.3