Changed exception syntax to work with Python 3 without breaking backwards
compatibility with >= 2.6.
Explain alternate form of substr function required to complete challenge.
Update print in except block to use Python 3 and future import for Python 2.