It seems that your code is written for Python2.x (
dict.iteritems()
), but you are trying to use it Python3.6. Try to rename .iteritems()
to .items()
in BaseHandler
. However, there are probably other errors in the code.