mocking http calls in python