Use 'requests' library to get statistics from http api

the library is a smart tool to get http response and take json
payload out of it.