Refactor to use requests

and a with statement :D
Also updated your class to a new style class [new vs old](https://docs.python.org/2/reference/datamodel.html#new-style-and-classic-classes)

As a side note, what version of python is this running under? 2.x or 3.x?