Forward compatiblity with Python 3.