Python 3 compatibility added (2to3).