write get http request test in python