Python 2.6>=/3 compatible source code.