Fix interface bind error in examples and improve style

- fix errors that prevented sending requests to non localhost addresses
in example
- clean code according to PEP8 (except method names)
- add parseURI method (for simple browsers)
- fix some error handling