Python binding for request parsing