HTTP request/response parser for python in C