Update session02.rst

Main issue: the parse_request function had the method, uri and protocol elements in the wrong order, making the function always throw an exception.
Also, some changes to make the code on the slides match the code in the repository.