Api connection being checked the right way using Requests