web.httpserver implementation causes a lot of memory issues

I recommend using eventlet or gevent python native server
(pretty much how it is done at openstack projects)
Beside it eventlet grants additional functional benefits