REST API calls to BIG-IP LTM to get the status of pool members
Regarding your performance problem there's nothing obviously wrong with the code.  I'd suggest you make sure that the server isn't throttling the responses in subsequent runs.

If that's not the case the next step would be to determine which of the calls is slow and pinpoint if it's an issue e.g. with JSON parsing or accumulating some garbage data that's not necessary.

In particular a profiler would come in handy for this, even something like cProfile would probably be enough to check for obvious problems.




The code should follow PEP8 naming conventions everywhere, i.e. make_request.
Also compatibility with Python 3 would be nice, so use print(...).