Python 3.X fixes + enabled TIMEOUT setting

Tested with Pyhon 3.3.1, last Django commit, and uWSGI 1.9.14 (64bit)