Making code compatible with Python 2 and 3
python.dzone.com