Reddit interview question

build a simple python class for handling requests