Update retry_decorator.py

Retry request in case the initial request does not go through.