Some cosmetic changes

Changed decision tree for py2 / py3 to simpler one, and changed the regex to work simpler.

My philosophy with the `res.readlines()` code was that you would not have to have it all in memory at a time.