Apparently that code is a no-go on Python 2.  It seemed to work on Python 3 though.
do some explaining