Traceback (most recent call last):


 "/usr/lib/python2.7/dist-packages/bottle.py", line 960, in wsgi

start_response(response._status_line, response.headerlist)


 "/usr/lib/python2.7/dist-packages/cherrypy/wsgiserver/wsgiserver2.py", line 2309, in start_response

"WSGI response header value %r is not of type str." % v)
TypeError: WSGI response header value u'text/plain' is not of type str.

Traceback (most recent call last):


 "abcd_contour.py", line 32, in <module>

letter = im[y:y+h,x:x+w]
TypeError: slice indices must be integers or None or have an __index__ method
