Tried with Python 2:
EDIT-1: No luck
EDIT-2: Fixed some minor syntax related to the print line. Now python 2 error is same as python 3.