Comply with Python 3

Tested with:
* Python 2.7.6, Pyramid 1.3, ExtJS 4.2.2
* Python 3.4.0, Pyramid 1.5.2, ExtJS 4.2.2