Added missing template include and added an example for models compatibility between Python 2 and Python 3.