change str to basestring for new cherrypy (3.2)

change str to basestring in web