fix print function

=> python2.6.5
Update profiling.py, attr. "func_closure" ( py2.6)

change attributes "func_code" -> "__code__" and "func_closure" -> "__closure__"   ( => python2.6 )
remove u'' prefix, import __future__ unicode_lit..

Remove u'' prefix, and import __future__ unicode_literals.
Now all strings without the u'' - are Unicode.


>>> from __future__ import unicode_literals
>>> hasattr(str, '__name__')
True
sha1 expects bytes, so we encode str

hashlib.sha1 operates on bytes.
list expected
Update middleware.py

from __future__ import unicode_literals