Fixed call() argument error and converted http library to requests

This PR fixes a bug in the call() function where the opts argument wasn't cleared before returning the results.
Additionally the http library has been converted to requests.