seems like this could be made a bit better using requests, instead of direct calls to urlopen..
this solves #12 although, I'm sure this could be done much more elegantly...
please, before merging, do make sure that this doesn't break any other functionality, or is broken on python 2, as I've only tested python 3 and only using the code within #12, but my changes should support python 2.7 and earlier as well.
seems like this could be made a bit better using requests, instead of direct calls to urlopen..
this solves #12 although, I'm sure this could be done much more elegantly... please, before merging, do make sure that this doesn't break any other functionality, or is broken on python 2, as I've only tested python 3 and only using the code within #12, but my changes should support python 2.7 and earlier as well.